
import java.util.Random;

public class HunDun {
	
	static float  v = 0f;
	public static float X(int n)
	{	
		if(n==0)
		{    
		    //System.out.println(n+":"+v);
		    return v;
		}
		//System.out.println((n-1)+":"+4*X(n-1)*(1-X(n-1)));
		return 4*X(n-1)*(1-X(n-1));
	}
	public static void main(String[] args) {
		Random ran = new Random();
		v = ran.nextFloat();
		//System.out.println("��һ��:"+v);
		//����ȡ��
		int n = (int)Math.ceil(v*64);
		System.out.println("n:"+n);
		for(int i=0;i<=n;i++)
		{
			System.out.println(i+":"+X(i));
		}
	}
}
